$(function(){
    eventAll.lengthLimit();//显示字符长度为50
    headerEvent.styleShow(0);
})
var eventAll = {
    num:50,//默认显示字符长度为50,
    lengthLimit:function(a){
        let element = $('.tag > div .text p');
        let num = (a === undefined?this.num:a);
        element.text(element.text().slice(0,num))
    }
}

